package com.generalbackend.common.enums;

import lombok.Getter;

/**
 * @author tim.xie
 * @date 2021/12/15 10:42
 */
public enum MenuEnum {

    Home("首页", null, 1),
    DefaultApi("默认菜单枚举API",null,1),
    License("许可证", null, 1),
    Tool("常用工具", null, 1),
    ZenTao("禅道", null, 1),
    RoleManageMain("权限管理", null, 1),
    RoleManage("角色管理", RoleManageMain, 2),
    UserManage("用户管理", RoleManageMain, 2),
    SystemManagement("系统管理", null, 1),
    PersonalInformation("个人信息", SystemManagement, 2),
    SystemConfiguration("系统配置", SystemManagement, 2)
    ;

    /**
     * 菜单名称
     */
    @Getter
    private String name;
    /**
     * 父菜单
     */
    @Getter
    private MenuEnum pid;
    /**
     * 菜单类型
     */
    @Getter
    private Integer type;

    MenuEnum(String name, MenuEnum pid, Integer type) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }
}
